﻿using Microsoft.Extensions.DependencyInjection;

namespace FriendFunny.Tool.ApiDocument.Extensions
{
    public static class ApiDocumentExtensions
    {
        /// <summary>
        /// 注册Swagger
        /// </summary>
        /// <param name="services"></param>
        /// <returns></returns>
        public static IServiceCollection AddApiDocumentService(this IServiceCollection services)
        {
            services.AddSwaggerGen();

            return services;
        }
    }
}
